package utils;

/**
 * Created by ZhaiGuaili on 2018/7/3.
 */
public class ClassUtils {

    public static ClassLoader getDefaultClassLoader(){
        ClassLoader c1 = Thread.currentThread().getContextClassLoader();
        if(c1 == null){
            c1 = ClassUtils.class.getClassLoader();
            if(c1 == null){
               c1 = ClassLoader.getSystemClassLoader();
            }
        }
        return c1;
    }

}
